package com.access.boot.autoconfigure.apisdk;

import com.access.boot.autoconfigure.apisdk.aop.Advice;
import com.access.boot.autoconfigure.apisdk.proxy.aop.SdkContextArgsBeforeChangeableAdvice;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Arrays;
import java.util.List;

@ConfigurationProperties(prefix = "openapi.config")
public class GlobalConfiguration {

    public GlobalConfiguration() {
    }

    private List<Advice> advices = Arrays.asList(new SdkContextArgsBeforeChangeableAdvice());

    private String accessId;

    public String getAccessId() {
        return accessId;
    }

    public void setAccessId(String accessId) {
        this.accessId = accessId;
    }

    public List<Advice> getAdvices() {
        return advices;
    }
}
